package com.orange.mapper;

import com.orange.domain.Customer;
import com.orange.dto.CustomerDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Customer> queryCustomerAll(@Param("c") CustomerDto customerDto);

    int changeCustomerUser(@Param("userId") Integer userId, @Param("customerIds") Integer[] customerIds);
}